function gets(pageNum) {
    var pageN = pageNum;
    $("#pageNum").val(pageN);
    var serializeArray = $("#more-info-dialog").serializeArray();
    $.ajax({
            url: '/myspringboot/StatisticsController/StatisticsFindAllSp',
            type: 'post',
            dataType: "json",
            data: serializeArray,
            success: function (result) {
                var result1 = result.data;
                yibu(result1.pages, result1.pageNum);
                var list = result1.list;

                $(".a").empty();
             for (var i = 0; i < list.length; i++) {
                    var surId = list[i].surId;
                    var podiPd = list[i].podiPd;

                    var surName = list[i].surName;
                    if (podiPd!=null) {
                        var number=0;
                        var number1=0;
                        var number2=0;
                        var number3=0;
                        var number4=0;
                        var number5=0;
                        var number6=0;
                        var number7=0;
                        for (var j = 0; j < podiPd.length; j++) {
                            var a = j+1;
                            var podiState = podiPd[j].podiState;
                            var state=null;
                            if (podiState == 0) {
                                state ="已发货"
                            }else if (podiState == 1) {
                                state ="未发货"
                            }else if (podiState == 2) {
                                state ="已入库"
                            }
                            var podiOrder = podiPd[j].podiOrder;
                            var podiOrderTotal = podiPd[j].podiOrderTotal;
                            var podiDelivery = podiPd[j].podiDelivery;
                            var podiDeliveryTotal = podiPd[j].podiDeliveryTotal;
                            var podiReturn = podiPd[j].podiReturn;
                            var podiReturnTotal = podiPd[j].podiReturnTotal;
                            var podiSettlement = podiPd[j].podiSettlement;
                            var podiSettlementTotal = podiPd[j].podiSettlementTotal;
                            var tr = '<tr>' +
                                '<td>' + a + '</td>' +
                                '<td>' + surName + '</td>' +
                                '<td>' + state + '</td>' +
                                '<td>' + podiOrder + '</td>' +
                                '<td>' + podiOrderTotal + '</td>' +
                                '<td>' + podiDelivery + '</td>' +
                                '<td>' + podiDeliveryTotal + '</td>' +
                                '<td>' + podiReturn + '</td>' +
                                '<td>' + podiReturnTotal + '</td>' +
                                '<td>' + podiSettlement + '</td>' +
                                '<td>' + podiSettlementTotal + '</td>' +
                                '<td>' +'<button onclick="findOne('+surId+')" data-toggle="modal" data-target="#myModal">查询</button></td>' +
                                '</tr>'
                            $(".a").append(tr);
                             number += Number(podiOrder);
                             number1 += Number(podiOrderTotal);
                             number2 += Number(podiDelivery);
                             number3 += Number(podiDeliveryTotal);
                             number4 += Number(podiReturn);
                             number5+= Number(podiReturnTotal);
                             number6+= Number(podiSettlement);
                             number7+= Number(podiSettlementTotal);
                        }
                    }
                 $("#btn_sub").empty();
                 var tr1= '<td>' + '总计:' + '</td>' +
                     '<td>' + '' + '</td>' +
                     '<td>' + ''+ '</td>' +
                     '<td>' + number+ '</td>'+
                     '<td>' + number1+ '</td>'+
                     '<td>' + number2+ '</td>'+
                     '<td>' + number3+ '</td>'+
                     '<td>' + number4+ '</td>'+
                     '<td>' + number5+ '</td>'+
                     '<td>' + number6+ '</td>'+
                     '<td>' + number7+ '</td>'
                 $("#btn_sub").append(tr1);
                }
            }
        }
    )
}

